package com.megalith.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.megalith.dto.UserGroupDTO;
import com.megalith.vo.UserGroupWithUserVO;
import com.megalith.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description TODO
 * @Author lfp
 * @Date 2022/7/16
 * @Version 1.0
 */
@Mapper
public interface ProcessEngineUserGroupMapper extends BaseMapper {
    /**
     * @Description 查询用户组及用户关联信息
     * @param groupDTO
     * @Author lfp
     * @Date 2022/7/16
     * @Return
     */
    public List<UserGroupWithUserVO> queryUserGroupWithUsersByGroupId(UserGroupDTO groupDTO);

    /**
     * @Description 根据用户组id，查询用户列表
     * @param id
     * @Author lfp
     * @Date 2022/7/16
     * @Return
     */
    List<UserVO> selectUsersByGroupId(String id);
}
